package com.two.screen.water.balance.listener

import android.text.Editable
import android.text.TextWatcher

abstract class MyTextNumberWatcher : TextWatcher {
    override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) {

    }

    override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) {

    }

    override fun afterTextChanged(s: Editable?) {
        s?.let {
            this.afterTextChanged(it.toString().trim())
        }
    }

    abstract fun afterTextChanged(num: String)
}
